<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title>后台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <!-- Le styles -->
    <link href="/Public/libs/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <style type="text/css">
        body {
            padding-top: 60px;
            padding-bottom: 40px;
        }
    </style>
    <link href="/Public/libs/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/Apps/Admin/View/Admin/admin.css">

    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
          <script src="../assets/js/html5shiv.js"></script>
        <![endif]-->

    <!-- Fav and touch icons -->
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
    <link rel="shortcut icon" href="../assets/ico/favicon.png">
</head>

<body>

    <div class="navbar navbar-inverse navbar-fixed-top">
        <div class="navbar-inner">
            <div class="container">
                <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="brand" href="#">领飞年会</a>
                <div class="nav-collapse collapse">
                    <ul class="nav">
                        <li class="active">
                            <a href="#" class="all-user-info">所有成员</a>
                        </li>
                        <!-- <li>
                            <a href="#" class="pre-signed-user-info">预签到</a>
                        </li> -->

                        <li>
                            <a href="#" class="choujiang-winning-user-info">抽奖中奖列表</a>
                        </li>
                        <li>
                            <a href="#" class="yaoyiyao-winning-user-info">摇一摇中奖列表</a>
                        </li>
                        <!-- <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown
                                <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                <li>
                                    <a href="#">Action</a>
                                </li>
                                <li>
                                    <a href="#">Another action</a>
                                </li>
                                <li>
                                    <a href="#">Something else here</a>
                                </li>
                                <li class="divider"></li>
                                <li class="nav-header">Nav header</li>
                                <li>
                                    <a href="#">Separated link</a>
                                </li>
                                <li>
                                    <a href="#">One more separated link</a>
                                </li>
                            </ul>
                        </li> -->
                    </ul>
                    <!-- <form class="navbar-form pull-right">
                        <input class="span2" type="text" placeholder="Email">
                        <input class="span2" type="password" placeholder="Password">
                        <button type="submit" class="btn">Sign in</button>
                    </form> -->
                </div>
                <!--/.nav-collapse -->
            </div>
        </div>
    </div>

    <div class="container">

        <!-- Main hero unit for a primary marketing message or call to action -->
        <!-- <div class="hero-unit"> -->
        <div class="bs-docs-example j-specCard-box">

            <!-- <thead>
                            <tr>
                              <th>#</th>
                              <th>First Name</th>
                              <th>Last Name</th>
                              <th>Username</th>
                            </tr>
                          </thead>
                          <tbody>
                            <tr>
                              <td rowspan="2">1</td>
                              <td>Mark</td>
                              <td>Otto</td>
                              <td>@mdo</td>
                            </tr>
                            <tr>
                              <td>Mark</td>
                              <td>Otto</td>
                              <td>@TwBootstrap</td>
                            </tr>
                            <tr>
                              <td>2</td>
                              <td>Jacob</td>
                              <td>Thornton</td>
                              <td>@fat</td>
                            </tr>
                            <tr>
                              <td>3</td>
                              <td colspan="2">Larry the Bird</td>
                              <td>@twitter</td>
                            </tr>
                          </tbody> -->

        </div>

        <!-- 所有成员/预签到 -->
        <script type="text/x-jsrender" id="j-specCard">
            <table class="table table-bordered ">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>唯一标识</th>
                        <th>头像</th>
                        <th>昵称</th>
                        <th>性别</th>
                        <th>省</th>
                        <th>城市</th>
                        <th>国家</th>
                        <th>创建时间</th>
                    </tr>
                </thead>
                <tbody>
                    <%for return_body%>
                        <tr>
                            <td>
                                <%:#getIndex() + 1%>
                            </td>
                            <td>
                                <%:user_openid %>
                            </td>
                            <td>
                                <img class="head-img" src="<%:user_headimgurl%>" alt="">
                            </td>
                            <td>
                                <%:user_nickname%>
                            </td>
                            <td>
                                <%if user_sex == 1%>
                                男
                                <%else user_sex ==2%>
                                女
                                <%else%>
                                未知
                                <%/if%>
                            </td>
                            <td>
                                <%:user_province%>
                            </td>
                            <td>
                                <%:user_city%>
                            </td>
                            <td>
                                <%:user_country%>
                            </td>
                            <td>
                                <%:create_time%>
                            </td>
                        </tr>
                        <%/for%>
                </tbody>
            </table>

        </script>

        <!-- 抽奖中奖列表 -->
        <script type="text/x-jsrender" id="j-specCard-winning-choujiang">

            <table class="table table-bordered ">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>唯一标识</th>
                        <th>头像</th>
                        <th>昵称</th>
                        <th>性别</th>
                        <th>中奖类型</th>
                        <th>中奖排名</th>
                        <th>摇一摇次数</th>
                        <th>创建时间</th>
                    </tr>
                </thead>
                <tbody>
                    <%for return_body%>
                    <%if winning_type == 1%>
                        <tr>
                            <td>
                                <%:#getIndex() + 1%>
                            </td>
                            <td>
                                <%:user_openid %>
                            </td>
                            <td>
                                <img class="head-img" src="<%:userInfo.user_headimgurl%>" alt="">
                            </td>
                            <td>
                                <%:userInfo.user_nickname%>
                            </td>
                            <td>
                                <%if userInfo.user_sex == 1%>
                                男
                                <%else userInfo.user_sex ==2%>
                                女
                                <%else%>
                                未知
                                <%/if%>
                            </td>
                            <td>
                               
                                    抽奖活动
                                   
                                           
                            </td>
                            <td>
                                <%:winning_rank%>
                            </td>
                            <td><%:shark_num%></td>
                            <td>
                                <%:create_time%>
                            </td>
                        </tr>
                        <%/if%>
                        <%/for%>
                </tbody>


            </table>


        </script>

        <!-- 抽奖中奖列表 -->
        <script type="text/x-jsrender" id="j-specCard-winning-yaoyiyao">

            <table class="table table-bordered ">
                <thead>
                    <tr>
                        <th>#</th>
                        <th>唯一标识</th>
                        <th>头像</th>
                        <th>昵称</th>
                        <th>性别</th>
                        <th>中奖类型</th>
                        <th>中奖排名</th>
                        <th>摇一摇次数</th>
                        <th>创建时间</th>
                    </tr>
                </thead>
                <tbody>
                    <%for return_body%>
                    <%if winning_type == 2%>
                        <tr>
                            <td>
                                <%:#getIndex() + 1%>
                            </td>
                            <td>
                                <%:user_openid %>
                            </td>
                            <td>
                                <img class="head-img" src="<%:userInfo.user_headimgurl%>" alt="">
                            </td>
                            <td>
                                <%:userInfo.user_nickname%>
                            </td>
                            <td>
                                <%if userInfo.user_sex == 1%>
                                男
                                <%else userInfo.user_sex ==2%>
                                女
                                <%else%>
                                未知
                                <%/if%>
                            </td>
                            <td>
                                    摇一摇活动   
                            </td>
                            <td>
                                <%:winning_rank%>
                            </td>
                            <td><%:shark_num%></td>
                            <td>
                                <%:create_time%>
                            </td>
                        </tr>
                        <%/if%>
                        <%/for%>
                </tbody>


            </table>


        </script>



        <hr>

        <footer>
            <p>© Company 2017</p>
        </footer>

    </div>
    <!-- /container -->

    <!-- Le javascript
        ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="/Public/libs/jquery-1.9.1.min.js"></script>
    <script src="/Public/libs/bootstrap/js/bootstrap.min.js"></script>
    <script src="/Apps/Admin/View/Admin/admin.js"></script>
    <script src="/Public/libs/jrender.min.js"></script>




</body>

</html>